-
Notifications
You must be signed in to change notification settings - Fork 872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add code attributes to spring webflux controller spans and remove spring-webflux.handler.type
#12887
Add code attributes to spring webflux controller spans and remove spring-webflux.handler.type
#12887
Conversation
...io/opentelemetry/javaagent/instrumentation/spring/webflux/v5_0/server/SpringWebfluxTest.java
Outdated
Show resolved
Hide resolved
…nstrumentation into capture-code-attributes-spring-webflux
spring-webflux.handler.type
it looks like there's a checkstyle failure |
…nstrumentation into capture-code-attributes-spring-webflux
sorry about that, fixed it in the latest change. |
parameter.annotatedMethod == null | ||
? val -> val.contains(INNER_HANDLER_FUNCTION_CLASS_TAG_PREFIX) | ||
: val -> val.isEqualTo(TestController.class.getName()))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
previously used TestController
is more useful than org.springframework.web.method.HandlerMethod
that is reported after these changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now it reports TestController
as class name and method name as handle
, TestController
does not have this method
...io/opentelemetry/javaagent/instrumentation/spring/webflux/v5_0/server/SpringWebfluxTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
...io/opentelemetry/javaagent/instrumentation/spring/webflux/v5_0/server/SpringWebfluxTest.java
Outdated
Show resolved
Hide resolved
…gent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/webflux/v5_0/server/SpringWebfluxTest.java Co-authored-by: Trask Stalnaker <[email protected]>
…nstrumentation into capture-code-attributes-spring-webflux
…uichenli/opentelemetry-java-instrumentation into capture-code-attributes-spring-webflux
if (handler instanceof HandlerMethod) { | ||
HandlerMethod handlerMethod = (HandlerMethod) handler; | ||
return handlerMethod.getMethod().getName(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
part of #7345